# @Version  : 1.0
# @Author   : wgq
# @File     : homework01.py
# @Date     : 2025/6/11 21:11

class Person:
    city = "北京"
    def __init__(self,name,age,hobby,App):
        self.name = name
        self.age = age
        self.hobby = hobby
        self.App = App
    def printInfo(self):
        print(f"{self.city}\t\t{self.name}\t\t{self.age}\t\t{self.hobby}\t\t{self.App}")
    @staticmethod
    def printMenu():
        print(f"个人信息如下".center(30,"*"))
        print("城市\t\t姓名\t\t年龄\t\t爱好\t\tApp")


person = Person("小蓝",10,"唱歌","小红书")
person.printMenu()
person.printInfo()
Person.city = "上海"
person = Person("小名",12,"编程","抖音")
person.printMenu()
person.printInfo()

